<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <style>
      div {
        width: 200px;
        height: 200px;
        background-color: red;
        transition: all 0.5s;
      }

      div:hover {
        /* transform: rotate(180deg) translate(150px, 50px); */
        /* 我们同时有位移和其他属性，我们需要把位移放到最前面 */
        transform: translate(150px, 50px) rotate(180deg) scale(1.2);
      }
    </style>
  </head>

  <body>
    <div></div>
  </body>
</html>
